package com.smart.nacos.consumer.controller;

import com.smart.nacos.consumer.service.ConsumerService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ConsumerController {
    @Resource
    ConsumerService consumerService;

    @GetMapping("/hello")
    public String test() {
        return consumerService.hello();
    }
}
